<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>个人信息管理</title>
</head>
<body>
    <h1>个人信息管理</h1>
    <table>
        <caption>个人数据表</caption>
        <tr><th>姓名</th><th>年龄</th><th>性别</th><th>爱好</th></tr>
        {{ each db }}
        <tr>
            <td>{{ $value.name }} </td>
            <td>{{ $value.age }} </td>
            <td>{{ $value.sex }} </td>
            <td>{{ each $value.items }} {{ $value }} {{ /each }}</td>
        </tr>
        {{ /each }}
    </table>

    <form action="/add" method="POST">
    <table>
        <caption>录入新人员</caption>
        <tr><td>姓名：</td><td><input type="text" name="uname" /></td></tr>
        <tr><td>年龄：</td><td><input type="text" name="age"></td></tr>
        <tr><td>性别：</td><td><input type="text" name="sex"></td></tr>
        <tr><td>爱好：</td><td><input type="text" name="items"></td></tr>
    </table>
    <input type="submit" value="添加" />
    </form>
</body>
</html>